<!DOCTYPE html>
<!-- 
作者：漫小猫
QQ ：2535080855
博客：www.lxbkw.com
邮箱：manxiaomao@qq.com 
-->
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
		<title>CAT</title>
		<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
		<script type="text/javascript" th:src="@{/js/login.js}" src="../static/js/login.js" ></script>
	<style>
			body {
				background-attachment: fixed;
				background-position: bottom left;
				background-repeat: no-repeat;
				background-size: 100% 100%;
			}
			#srk input{
				width: 166px;
				height: 20px;
				font-size: 2em;
				
			}
			#dlk {
				width: 300px;
				height: 320px;
				border: 2px solid #00a2ca;
				text-align: center;
				background-color: #209ef759;
				border-radius: 30px;
				position: fixed;
				top: 0;
				left: 0;
				bottom: 0;
				right: 0;
				margin: auto;
			}
			
			#dl {
				width: 100px;
				height: 100px;
				margin: 0 auto;
				border: 0px;
				border-radius: 50px;
			}
			
			#srk {
				width: 270px;
				height: 138px;
				margin: 0 auto;
			}
			#srk span{
				font-size: 20px;
				color: azure;
			}
			#srk button {
				width: 180px;
				height: 30px;
				margin: auto;
				background-color: #00BCD4;
				font-size: large;
				border: solid;
			}
			
			#dl img {
				width: 100px;
				height: 100px;
				border-radius: 50px;
			}
		</style>
	</head>
	<body>
		<div id="dlk">
			<h2>Cat</h2>
			<div id="dl">
				<img src="http://q1.qlogo.cn/g?b=qq&nk=2535080855&s=100" />
			</div>
			<br />
			<!--/*@thymesVar id="name" type="java.lang.String"*/-->
			<b th:text="${name}">mxm</b>
		</div>
	</body>
	<script>
		function dlfile(){
			var mm = $("#mm").val();
			if(mm!=""){
				$.ajax({
						 type: "GET",//定义请求方式
						 url: "/login.mxm?password="+mm,//定义要提交到的url路径。
						 dataType: "json",//定义接收的消息格式
						 success: function(result){//取返回数据，result为接收返回数据的值。
						 if(result.code=="0"){
						 window.location.href="file.html"
						 }else{
							alert("密码错误！"); 
						 }
						 }
					});
			}else{
			alert("请输入密码！");
			}
		}
	</script>
</html>